from audio import text_to_speech
#from speech import speech_to_text
from deepseek import process_text

def main():
    # 语音转文字
    #user_speech = speech_to_text()
    #if not user_speech:
    #    print("❌ 语音输入失败")
    #    return
    user_speech="Please do not output full corner characters and tell me how do you think about Chinese"
    # API处理
    print("\n📡 正在发送请求到API...")
    api_response = process_text(user_speech)
    print("💡 API返回结果:", api_response)
    
    # 文字转语音
    text_to_speech(api_response)

if __name__ == "__main__":
    main()